package com.oracle.containers.map;

import java.util.Hashtable;
import java.util.Map;

/**
 * @author zhouyanxiang
 * @create 2020-08-2020/8/17-11:11
 */
public class HashTableReview {

    public static void main(String[] args) {
        Hashtable<String, String> hashtable = new Hashtable<>();

        for (int i = 0; i < 10; i++) {
            hashtable.put("key " + i," value " + 10*i);
        }

        for (Map.Entry<String, String> map : hashtable.entrySet()){
            System.out.println(map.getKey() + map.getValue());
        }
    }

}
